package spring.cloud.tasks.api.domain.task;

import lombok.Getter;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;

import java.util.Date;

@Slf4j
@Setter
@Getter
public class TaskConfiguration {
    private Long id;
    private String createBy;
    private Date createTime;
    private String lastUpdateBy;
    private Date lastUpdateTime;
    private String nameSpaceKey;


    //
    private String taskType;
    private String taskId;
    private String xId;
    private String description;
    public static String enabled_y = "Y";
    public static String enabled_n = "N";
    private String enabled;
    private String preferExecutorIdList = "";


    //
    private Integer taskItemTotalCount = 1;
    private Integer loadLevel = 1;
    //
    private String cronExpression = "";
    private String pausePeriodDate = "";
    private String pausePeriodTime = "";

    private String taskItemParameters = "";
    private String taskParameter = "";
    private String taskCustomContext = "";


    private Integer timeoutSeconds = -1;
    private Integer timeout4AlarmSeconds = -1;
    private Integer rerun = -1;
    /**
     * 提前进行预分配时间:单位分钟
     */
    private Integer preAllotMinutes;


    public void copyProperties(TaskConfiguration taskConfigurationDto) {
    }
}
